package com.quanyan.pay.service;

import com.quanyan.pay.entity.TSNRecord;

/**
 * @author songzj
 * @date 16/6/1-16:50
 */
public interface TsnService {

    /**
     * 业务处理状态
     */
    Byte STATUS_INIT = 0;             //初始
    Byte STATUS_PROCESS_ING = 1;      //处理中
    Byte STATUS_PROCESS_SUCCESS = 2;  //成功
    Byte STATUS_PROCESS_FAIL = 3;     //失败


    String TRASACTION_PAY = "PAY"; //支付
    String TRASACTION_REFUND = "REFUND"; //退款
    String TRASACTION_WITHDRAW = "WITHDRAW"; //提现

    String DATA_TYPE_JSON = "JSON";
    String DATA_TYPE_XML = "XML";

    TSNRecord insertTsnRecord(Integer payId, String dataType, String respData, String tsn, String orderNo, String tsnType);

    void updateTsnRecordStatus(Integer id, Byte status);
}
